<%@ page language="java"%>
<%@ page session="true"%>
<%@page import="blancosMikel.controller.beans.usuariosBeans"%>
<%@page import="blancosMikel.controller.beans.informativaBeans"%>
<%@page import="java.util.ArrayList"%>

<html>
<head>
<link rel='stylesheet' href='CSS/sigaabm.css' type='text/css' />
<link rel='stylesheet' href='CSS/efectos.css' type='text/css' />
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>BLANCOS MIKEL</title>
</head>
<body>
	<div class='menu' align='right'>
		<table width='100%'>
			<td align='left' style='color: white'>SIGAABM</td>
			<td align='right'>
				<ul id='menu'>					
					<li><a href="SEGURIDAD/singOut.jsp">Cerrar Sesion</a></li>
				</ul>
			</td>
		</table>
	</div>
<%
if (request.getSession().getAttribute("sesion") == null) {
	request.getSession().setAttribute("error", 1);
	response.sendRedirect("loginErrors");
}else{
	usuariosBeans usuario = (usuariosBeans) request.getSession().getAttribute("sesion");
	informativaBeans info = (informativaBeans)request.getAttribute("infoBean");
%>
<!--BODY-->
<table>
<tr>
	<td width="300">
		<table>
		<tr>
			<td height="150"><img src="IMG/logo.PNG" width="200" height="100" /></td>
		</tr>
		<tr>
			<td height="50"><h5><small>Bienvidenid@</small><br> <br>
								<%
									out.println(usuario.getNombreCompleto());
									out.println("<br>");
									out.println(usuario.getRol());
									out.println("<br>");
									out.println(usuario.getEmail());
									out.println("<br>");
								%>
							</h5>
			</td>
		</tr>
		<tr>
			<td>
				<%
					if (usuario.getRol().equals("Administrador") || usuario.getRol().equals("Root")) {
				%>
				<%@ include file='menuRoot.jsp' %>
				<% 
					} else {
				%>
				<%@ include file='menuClientes.jsp' %>
				<%
					}
				%>
			</td>
		</tr>
		</table>
	</td>
	<td width="700">
	<br><br><br>
		<img src="IMG/Intranet/bg.jpg" width="700" height="500" />
	</td>
</tr>
</table>
<div class="cabFinal" align="center">
	<h4>
		<%
		out.println(info.getCopy());
}
		%>
	</h4>
</div>
</body>
</html>